home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Dylan Related / Mindy / Mindy 1.2 - portable sources / libraries / string-ext / exports.dylan < prev    next >
Encoding:
Text File  |  1995-03-15  |  3.7 KB  |  131 lines  |  [TEXT/ttxt]

  1. module:     dylan-user
  2. author:     Nick Kramer (nkramer@cs.cmu.edu)
  3. synopsis:   Contains the library and module definitions for the String
  4.             Extensions library.
  5. copyright:  Copyright (C) 1994, Carnegie Mellon University.
  6.             All rights reserved.
  7. rcs-header: $Header: exports.dylan,v 1.2 94/12/10 15:40:46 nkramer Exp $
  8.  
  9. //======================================================================
  10. //
  11. // Copyright (c) 1994  Carnegie Mellon University
  12. // All rights reserved.
  13. // 
  14. // Use and copying of this software and preparation of derivative
  15. // works based on this software are permitted, including commercial
  16. // use, provided that the following conditions are observed:
  17. // 
  18. // 1. This copyright notice must be retained in full on any copies
  19. //    and on appropriate parts of any derivative works.
  20. // 2. Documentation (paper or online) accompanying any system that
  21. //    incorporates this software, or any part of it, must acknowledge
  22. //    the contribution of the Gwydion Project at Carnegie Mellon
  23. //    University.
  24. // 
  25. // This software is made available "as is".  Neither the authors nor
  26. // Carnegie Mellon University make any warranty about the software,
  27. // its performance, or its conformity to any specification.
  28. // 
  29. // Bug reports, questions, comments, and suggestions should be sent by
  30. // E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  31. //
  32. //======================================================================
  33.  
  34.  
  35. define library string-extensions
  36.   use dylan;
  37.   use collection-extensions;
  38.   export
  39.     string-conversions, character-type, string-hacking,
  40.     substring-search, regular-expressions;
  41. end library string-extensions;
  42.  
  43.  
  44. // Contains various conversions that one would think would be part of
  45. // Dylan, such as int to string and string to int.
  46. // Also contains an "as" method for converting a character to a string.
  47. //
  48. define module string-conversions
  49.   use dylan;
  50.   use string-hacking;
  51.   use character-type;
  52.   export
  53.     string-to-integer, integer-to-string, 
  54.     digit-to-integer, integer-to-digit;
  55. end module string-conversions;
  56.  
  57.  
  58. // Except for the names, these are identical to the functions found in
  59. // the C library ctype.
  60. //
  61. define module character-type
  62.   use dylan;
  63.   use extensions;
  64.   export
  65.     alpha?, digit?, alphanumeric?, whitespace?,
  66.     uppercase?, lowercase?, hex-digit?, graphic?, printable?,
  67.     punctuation?, control?, byte-character?;
  68. end module character-type;
  69.  
  70.  
  71. // Contains various useful string and character functions
  72. //
  73. define module string-hacking
  74.   use dylan;
  75.   use extensions;
  76.   use character-type;
  77.   use parse-string;
  78.   export
  79.     predecessor, successor, add-last, case-insensitive-equal,
  80.     <character-set>, <case-sensitive-character-set>, 
  81.     <case-insensitive-character-set>, 
  82.     <byte-character-table>;
  83. end module string-hacking;
  84.  
  85.  
  86. // Robert's Boyer-Moore implementation
  87. //
  88. define module substring-search
  89.   use dylan;
  90.   use extensions;
  91.   use subseq;
  92.   use string-hacking;
  93.   use do-replacement;
  94.   export
  95.     substring-position, make-substring-positioner, 
  96.     substring-replace, make-substring-replacer;
  97. end module substring-search;
  98.  
  99.  
  100. define module regular-expressions
  101.   use dylan;
  102.   use extensions;
  103.   use string-conversions;
  104.   use character-type;
  105.   use string-hacking;
  106.   use subseq;
  107.   use do-replacement;
  108.   use parse-string;
  109.   export
  110.     regexp-position, make-regexp-positioner,
  111.     regexp-replace, make-regexp-replacer,
  112.     translate, make-translator,
  113.     split, make-splitter,
  114.     join;
  115. end module regular-expressions;
  116.  
  117.  
  118. define module do-replacement
  119.   use dylan;
  120.   use extensions;
  121.   use character-type;
  122.   use string-conversions;
  123.   export do-replacement;
  124. end module do-replacement;
  125.  
  126.  
  127. define module parse-string
  128.   use dylan;
  129.   use extensions;
  130.   export <parse-string>, consume, lookahead, parse-string-done?;
  131. end module parse-string;